import request from "@/utils/request.js";

const Api = {
    captcha: "/v1/auth/captcha",
    register: "/v1/auth/register",
}

/**
 * 验证码
 */
export const captcha = (data) => {
    return request({
        url: Api.captcha,
        method: "GET",
        data,
    });
};

/**
 * 注册
 */
export const register = (data) => {
    return request({
        url: Api.register,
        method: "POST",
        data,
    });
};